package com.hopu.proxy.computer;

import com.hopu.proxy.CellphoneFactory;
import com.hopu.proxy.CellphoneSales;
import com.hopu.proxy.CellphoneShop;

public class ComputerTest {

    public static void main(String[] args) {
        //创建工厂对象
        ComputerSales factory = new ComputerFactory();
        //创建专卖店对象
        ComputerSales shop = new ComputerShop(factory);
        //调用卖电脑
        shop.sellComputer("allien20000");
    }
}
